﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="pgPartSocial.aspx.cs" Inherits="EGuayas.Web.Licenciamiento.promotor.tabs.pgPartSocial" %>

<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="~/Resources/css/Style.css" rel="stylesheet" />
    <!-- Load Ext JS -->
    <script src="../../../Resources/js/Global.js"></script>

</head>
<body>
    <form id="Form1" runat="server">
        <ext:ResourceManager ID="pgIdCategManager" runat="server" />
        <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>
                <ext:FormPanel ID="FormPanel1" runat="server" Region="Center" Layout="VBoxLayout">
                    <LayoutConfig>
                        <ext:VBoxLayoutConfig Align="Stretch" />
                    </LayoutConfig>
                    <TopBar>
                        <ext:Toolbar ID="Toolbar3" runat="server">
                            <Items>
                                <ext:ToolbarFill />
                                <ext:Button ID="ShowTab1" runat="server" Text="Mostrar Documentos" Disabled="true" Icon="PageWhiteStack">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{Tab1},0);this.setDisabled(true);" />
                                    </Listeners>
                                </ext:Button>
                                <ext:Button ID="ShowTab3" runat="server" Text="Mostrar Informe" Icon="Report">
                                    <Listeners>
                                        <Click Handler="#{TabPanel1}.addTab(#{Tab2},1);this.setDisabled(true);" />
                                    </Listeners>
                                </ext:Button>
                                <ext:Button ID="ShowTab4" runat="server" Text="Mostrar Actividades" Icon="PageWhiteText">
	                                <Listeners>
		                                <Click Handler="#{TabPanel1}.addTab(#{Tab4},4);this.setDisabled(true);" />
	                                </Listeners>
                                </ext:Button>
                            </Items>
                        </ext:Toolbar>
                    </TopBar>
                    <Items>
                        <ext:TabPanel ID="TabPanel1" runat="server" Flex="1" TabPosition="Left">
                            <Items>
                                <ext:Panel ID="Tab1" Title="Documentos" runat="server" Closable="true" CloseAction="Hide" Icon="PageWhiteStack" Layout="Fit">
                                    <Items>
                                        <ext:UserControlLoader ID="uc_loaddoc_partSocial_p006" UserControlID="wuc_loaddoc_partSocial_p006"  runat="server" Path="~/Licenciamiento/promotor/tabs/wucLoadDoc.ascx" OnComponentAdded="OnLoadDocAdded" />
                                    </Items>
                                    <Listeners>
                                        <Close Handler="#{ShowTab1}.setDisabled(false);" />
                                    </Listeners>
                                </ext:Panel>
                                <ext:Panel ID="Tab2" Title="Informes" runat="server" Closable="true" CloseAction="Hide" Icon="FolderPage" Layout="Fit">
                                    <Items>
                                        <ext:UserControlLoader ID="uc_read_info_01" UserControlID="wuc_read_info_p001" runat="server" Path="~/Licenciamiento/promotor/tabs/wucReadInfo.ascx" OnComponentAdded="OnLoadPartAdded" />
                                    </Items>
                                    <Listeners>
                                        <Close Handler="#{ShowTab3}.setDisabled(false);" />
                                    </Listeners>
                                </ext:Panel>
                                <ext:Panel ID="Tab4" Title="Actividades" runat="server" Closable="true" CloseAction="Hide" Icon="PageWhiteText" Layout="Fit">
	                                <Items>
		                                <%--:: --%>
		                                <ext:UserControlLoader ID="uc_act_c001" UserControlID="uc_act_c001_ps" runat="server" Path="~/Licenciamiento/promotor/tabs/wucPartSoc.ascx" OnComponentAdded="OnActividadesAdded" />
	                                </Items>
	                                <Listeners>
		                                <Close Handler="#{ShowTab4}.setDisabled(false);" />
	                                </Listeners>
	                             </ext:Panel>
                            </Items>
                            <Bin></Bin>
                        </ext:TabPanel>
                    </Items>
                </ext:FormPanel>
                
            </Items>
        </ext:Viewport>
    </form>
    
</body>


</html>
